<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <h2>{{message}}</h2>
    <img v-bind:src="imgSrc" alt="BiliBili头像">
    <!-- 语法糖-->
    <img :src="imgSrc" alt="BiliBili头像">
    <!-- 内联字符串拼接 -->
    <a :href=" 'http://' + aHref" target="_blank">百度一下。</a>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    const app = new Vue({
        el: '#app',
        data: {
            message: 'simplelu',
            imgSrc: 'https://i0.hdslb.com/bfs/face/ef1a17b69eadc08e660b242e958deb5be9acd17c.jpg@140w_140h_1c.webp',
            aHref: 'www.baidu.com'
        }
    })
</script>
</body>
</html>